package com.pureut.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.order.domain.SalesOrder;
import com.pureut.order.dto.SalesOrderDto;
import com.pureut.order.vo.BackDataVo;
import com.pureut.order.vo.SalesOrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/***
 *
 * Author:C
 * Date:2022/11/30 17:57
 * @DESC
 */
@Mapper
public interface SalesOrderMapper extends BaseMapper<SalesOrder> {

    /**
     * 销售订单列表
     */
    List<SalesOrderDto> getSalesOrderList(SalesOrderVo salesOrderVo);

    /**
     * 获取销售订单列表(其他模块调用)
     * @param salesOrderVo
     * @return
     */
    List<SalesOrderDto> getOrderSalesOrderList(SalesOrderVo salesOrderVo);

    /**
     * 销售发货重量回传
     * @param backDataVo
     */
    int updateShippingWeight(BackDataVo backDataVo);

    boolean updateShippingOutWeight(BackDataVo backDataVo);

    boolean updateSubContranctWeight(String associatedDocNum);

    /**
     * 修改销售订单明细委外入库重量
     * @param backDataVo
     * @return
     */
    boolean updateSubWeight(BackDataVo backDataVo);
}
